const PasswordDao = require('../dao/password');
const ok = require('../core/response-shortcut');



class passwordController {

    static async update(ctx) {
        // 接收客户端参数

        //验证通过,就操作数据库
        //===>创建MarketRegion并写入sql
        await PasswordDao.update(ctx);
        ctx.response.status = 200;
        ctx.body = ok.success()
    }
}

module.exports = passwordController